From: kaf24@firebug.cl.cam.ac.uk Date: Fri, 14 Jul 2006 10:48:48 +0000 (+0100) Subject: [TPM] Discard a future response packet after a timeout has occurred instead of X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15840 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=815077ee40b2190def5ecef3df015c01e5207b34;p=xen.git [TPM] Discard a future response packet after a timeout has occurred instead of removing the request right away. Signed-off-by: Stefan Berger --- diff --git a/linux-2.6-xen-sparse/drivers/xen/tpmback/tpmback.c b/linux-2.6-xen-sparse/drivers/xen/tpmback/tpmback.c index 3e2d5087a7..f792a4cf35 100644 --- a/linux-2.6-xen-sparse/drivers/xen/tpmback/tpmback.c +++ b/linux-2.6-xen-sparse/drivers/xen/tpmback/tpmback.c @@ -852,11 +852,11 @@ static void processing_timeout(unsigned long ptr) */ if (pak == packet_find_packet(&dataex.pending_pak, pak) || pak == packet_find_packet(&dataex.current_pak, pak)) { - list_del(&pak->next); if ((pak->flags & PACKET_FLAG_DISCARD_RESPONSE) == 0) { tpm_send_fail_message(pak, pak->req_tag); } - packet_free(pak); + /* discard future responses */ + pak->flags |= PACKET_FLAG_DISCARD_RESPONSE; } write_unlock_irqrestore(&dataex.pak_lock, flags);